package domain;

import java.sql.Timestamp;
import java.util.List;

public class Movie {

	private long mid;
	private User user;
	private String name;
	private String genre;
	private String year;
	private int runTime;
	private String summary;
	private String poster;
	private String linkToMovie;
	private double rating;
	private int popularity;
	private boolean isCompleted;
	private List<User> directedList;
	private List<User> actedList;
	private List<User> crewList;
	private Timestamp timestamp;

	public Movie(long mid,User user, String name, String genre, String year, String summary, int runTime, String poster, String linkToMovie, double rating, int popularity, boolean isCompleted, List<User> directorList, List<User> actorList, List<User> crewList, Timestamp timestamp)
	{
		this.mid=mid;
		this.user=user;
		this.name=name;
		this.genre=genre;
		this.year=year;
		this.summary=summary;
		this.rating = rating;
		this.popularity = popularity;
		this.poster=poster;
		this.linkToMovie=linkToMovie;
		this.isCompleted=isCompleted;
		this.directedList = directorList;
		this.actedList = actorList;
		this.crewList = crewList;
		this.timestamp = timestamp;
	}

	
	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public Timestamp getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}
	public long getMid() {
		return mid;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getGenre() {
		return genre;
	}
	public void setGenre(String genre) {
		this.genre = genre;
	}
	
	public String getYear() {
		return year;
	}
	public void setYear (String year) {
		this.year = year;
	}
	
	public int getRunTime() {
		return runTime;
	}
	public void setRunTime (int runTime) {
		this.runTime = runTime;
	}
	
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	public String getPoster() {
		return poster;
	}
	public void setPoster(String poster) {
		this.poster = poster;
	}
		
	public String getLinkToMovie() {
		return linkToMovie;
	}
	public void setLinkToMovie(String linkToMovie) {
		this.linkToMovie = linkToMovie;
	}
	
	public double getRating(){
		return rating;
	}
	public void setRating(double rating){
		this.rating = rating;
	}
	
	public int getPopularity(){
		return popularity;
	}
	public void setPopularity(int popularity){
		this.popularity = popularity;
	}
	
	public boolean getIsCompleted() {
		return isCompleted;
	}
	public void setIsCompleted(boolean isCompleted) {
		this.isCompleted = isCompleted;
	}
	public List<User> getDirectorList() {
		return this.directedList;
	}
	public void setDirectorList(List<User> directorList) {
		this.directedList = directorList;
	}
	public List<User> getActorList() {
		return this.actedList;
	}
	public void setActorList(List<User> actorList) {
		this.actedList = actorList;
	}
	
	public List<User> getCrewList() {
		return crewList;
	}

	public void setCrewList(List<User> crewList) {
		this.crewList = crewList;
	}
	
	public boolean isCompleted(){
		return this.isCompleted;
	}
	public void setCompleted(boolean isCompleted){
		this.isCompleted=isCompleted;
	}
}